package com.info.zhiduoduo.repository.entity.marketingcooperative;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)  //setter return this;
@ToString
@TableName("zdd_marketing_cooperative_record")
public class MarketingCooperativeRecord extends Model<MarketingCooperativeRecord> {

	@TableId(type = IdType.AUTO)
	/**
	 * id
	 */
	private Integer id;

	/**
	 * 合伙人id
	 */
	private Integer partnerid;

	/**
	 * 企业id
	 */
	private Integer compid;

	/**
	 * 海报配置id
	 */
	private Integer posterConfigId;

	/**
	 * col1
	 */
	private String col1;

	/**
	 * col2
	 */
	private String col2;

	/**
	 * col3
	 */
	private String col3;

	/**
	 * col4
	 */
	private String col4;

	/**
	 * col5
	 */
	private String col5;

	/**
	 * col6
	 */
	private String col6;

	/**
	 * col7
	 */
	private String col7;

	/**
	 * col8
	 */
	private String col8;

	/**
	 * col9
	 */
	private String col9;

	/**
	 * col10
	 */
	private String col10;

	/**
	 * 状态 1. 已申请 2. 已审核待结算 3. 审核失败 4. 已结算
	 */
	private Integer state;

	/**
	 * 合伙人佣金
	 */
	private BigDecimal brokerage;

	/**
	 * 企业备注
	 */
	private String companyNote;

	/**
	 * 佣金备注
	 */
	private String brokerageNote;

	/**
	 * 汇款凭证
	 */
	private String receipt;

	/**
	 * 提交时间
	 */
	private Date submittime;

	/**
	 * 审核时间
	 */
	private Date verifytime;

	/**
	 * 成交时间
	 */
	private Date dealtime;

	/**
	 * createtime
	 */
	private Date createtime;

	/**
	 * updatetime
	 */
	private Date updatetime;
	/**
	 * 表单id
	 */
	private Integer formId;


	@Override
	protected Serializable pkVal() {
		return id;
	}
}
